@import "../common/index";

.commonHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;

  .tabBox {
    flex: 1;
    display: flex;

    .tab {
      position: relative;
      padding: 20px 30px;

      .tabTitle {
        cursor: pointer;

        &.active, &:hover {
          color: @allPrimaryColor;
        }
      }

      .dropdownList {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 22;
        text-align: center;
        filter: drop-shadow(2px 1px 4px rgba(0, 0, 0, .5));
        border-radius: 4px;
        background: @allWhite;

        .dropdownItem {
          cursor: pointer;
          line-height: 2.5rem;

          &.active, &:hover {
            color: @allPrimaryColor;
          }
        }

        &:before {
          content: '';
          position: absolute;
          top: -11px;
          left: 0;
          right: 0;
          width: 0;
          height: 0;
          margin: 0 auto;
          border-left: 12px solid transparent;
          border-right: 12px solid transparent;
          border-bottom: 12px solid #fff;
        }
      }

      &:hover {
        .dropdownList {
          display: block;
        }
      }

      &:last-child {
        margin-right: 0;
      }
    }
  }
}
